﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Web.Framework;
using System.Web.UI.WebControls;

namespace Web.Framework
{
    public abstract partial class BaseWebMasterPage : System.Web.UI.MasterPage, IWebMessage
    {
        public virtual void PreLoad()
        {           
        }

        protected bool HasPermissionFor(string operation)
        {
            return baseWebPage.HasPermissionFor(operation);
        }

        internal BaseWebPage baseWebPage;

        public abstract void ShowMessage(string message, WebMessageType type);

        public abstract void ShowMessage(string title, string message, WebMessageType type);

        public abstract void MakeMenuVisible(bool visible);

        public abstract void BuildMenu();       
    }
}